#!/bin/bash

print "apps.value ", $mems{'MemTotal'}-$mems{'MemFree'}-$mems{'Buffers'}-$mems{'Cached'}-$mems{'Slab'}-$mems{'PageTables'}-$mems{'SwapCached'}
print "swap.value ", $mems{'SwapTotal'} - $mems{'SwapFree'}
MemTotal:        2048616 kB
MemFree:          172944 kB
Buffers:          108552 kB
Cached:           925712 kB
SwapCached:            0 kB
Active:           974420 kB
Inactive:         700196 kB
SwapTotal:       3903484 kB
SwapFree:        3903484 kB
Slab:              91648 kB
PageTables:        32952 kB

MemTotal:2048616kB MemFree:172944kB Buffers:108552kB Cached:925712kB SwapCached:0kB Active:974420kB Inactive:700196kB SwapTotal:3903484kB SwapFree:3903484kB Slab:91648kB PageTables:32952kB
